package com.cskaoyan.service.admin;

import com.cskaoyan.bean.bo.admin.password.UpdatePasswordBO;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.vo.admin.user.Dashboard;
import com.cskaoyan.bean.MarketAdmin;

import java.util.List;

/**
 * @author stone
 * @date 2022/09/06 11:44
 */
public interface AdminService {
    MarketAdmin queryById(Integer id);

    void modify(MarketAdmin admin);

    List<MarketAdmin> query(String username, String password, String[] avatars,Integer page,Integer limit);

    Dashboard queryDashboard();

    void updatePassword(UpdatePasswordBO password);

    //zjq
    CommonData fuzzyQuery(String username, Integer page, Integer limit);

    MarketAdmin create(MarketAdmin admin);

    int delete(MarketAdmin marketAdmin);

    MarketAdmin update(MarketAdmin admin);
}
